package com.chaodev.base.dao;

import com.chaodev.base.dto.ExplanationPointDto;
import com.chaodev.base.model.ExplanationLine;
import com.chaodev.base.model.ExplanationPoint;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ExplanationPointDao {

    /**
     * 新增导览解说点
     * @param explanationPoint
     * @return
     */
    int insertExplanationPoint(ExplanationPoint explanationPoint);

    /**
     * 修改导览解说点
     * @param explanationPoint
     * @return
     */
    int updateExplanationPoint(ExplanationPoint explanationPoint);

    /**
     * 删除导览解说点
     * @param id
     * @return
     */
    int deleteExplanationPoint(@Param(value = "id") String id);

    /**
     * 查询导览解说点列表
     * @param explanationPointDto
     * @return
     */
    List<ExplanationPoint> selectExplanationPointList(ExplanationPointDto explanationPointDto);

    /**
     * 查询单条导览解说点
     * @param id
     * @return
     */
    ExplanationPoint selectExplanationPointById(@Param(value = "id") String id);

    /**
     * 查询解说点所在线路
     * @param id
     * @return
     */
    List<ExplanationLine> selectExplanationPointOnLine(@Param(value = "id") String id);

}
